package com.jay.android.view;

import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.TextView;

public class LCDTextView extends TextView {
	public LCDTextView(Context context) {
		super(context);
	}

	public LCDTextView(Context context, AttributeSet attrs) {
		super(context, attrs);
		changeTypeFace(context, attrs);
	}

	private void changeTypeFace(Context context, AttributeSet attrs) {
		if (attrs != null) {
			Typeface mtf = Typeface.createFromAsset(context.getAssets(),
					"fonts/LcdD.ttf");
			super.setTypeface(mtf);
		}
	}
}
